<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ru" lang="ru">
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>Дом-страница Ломакина Александра</title>
  <%= stylesheet_link_tag 'main', 'sh' %>
  <%= javascript_include_tag 'sh/shCore.js' %>
  <%= javascript_include_tag 'sh/shBrushPhp.js' %>
  <%= javascript_include_tag 'sh/shBrushXml.js' %>
  <script language="javascript" type="text/javascript">
  window.onload = function () {
    // dp.SyntaxHighlighter.ClipboardSwf = '/javascripts/sh/clipboard.swf';
    dp.SyntaxHighlighter.HighlightAll('code', 1, 0, 0, <%= Time.now.day %>, 0);
  }
  </script>
  <link rel="alternate" type="application/rss+xml" title="RSS" href="/<%=h params[:controller] %>.rss" />
</head>
<body>
  
<div id="main_wrapper">
  <h1>Дом-страница Ломакина Александра</h1>

  <ul id="menu" class="flat">
    <li><%= link_to "Блог", { :controller => 'posts' }, menu_item_css_class('posts') %></li>
    <li><%= link_to "Кодо-кусочки", { :controller => 'code_pieces' }, menu_item_css_class('code_pieces')  %></li>
  </ul>
  
  <p style="color: green"><%= flash[:notice] %></p>

  <%= yield  %>
</div>

<div id="footer">
  &copy; 2008 &mdash; Все права находятся у меня. <% if logged_in? %> <%= link_to 'Выйти', :controller => 'account', :action => 'logout' %> <% end %>
  <div style="margin-top: 10px;"><%= link_to image_tag('rails.gif', :border => 0, :title => 'Ruby on Rails', :alt => 'Ruby on Rails Button'), 'http://rubyonrails.ru' %></div>
</div>

<script type="text/javascript">
  var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js'  type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
  var pageTracker = _gat._getTracker("UA-3754602-1");
  pageTracker._initData();
  pageTracker._trackPageview();
</script>

</body>
</html>
